package com.wd.live.viewmodel

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.wd.current.model.Bean.DataBean
import com.wd.current.model.Utils.HttpUtils
import com.wd.live.R
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers

/**
 * 作者: 张智聪
 * 时间: 2024/10/25
Time:  14:56
 * 描述:
 */
class HoroscopeViewModel:ViewModel() {
    val horoscope= MutableLiveData<DataBean.FindConstellationList>()
    fun constellation(){
        HttpUtils.httpUtils.aplis2.
        constella()
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe{
                horoscope.value=it
            }
    }


}